package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_felling_trees_unlock_pos", autoSave = true)
public class LogFellingTreesUnlockPos {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "解锁格子下标，从左上角开始对应0-24，-1表示重置")
    private int pos;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogFellingTreesUnlockPos(int activityId, long userId, int pos) {
        this.activityId = activityId;
        this.userId = userId;
        this.pos = pos;
        this.time = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
